﻿using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace FirstPersonCamera
{
    class GameTextureContainer
    {
        int width;
        int height;

        Texture2D bigTexture;
        GameTexture[,] allTextures;

        public GameTextureContainer(int numWide, int numHigh)
        {
            width = numWide;
            height = numHigh;

            allTextures = new GameTexture[numWide,numHigh];

            for (int a = 0; a < numWide; a++)
            {
                for (int b = 0; b < numHigh; b++)
                {
                    allTextures[a, b] = new GameTexture(a,b,width,height);
                }
            }
        }

        public GameTexture getTexture(int x, int y)
        {
            return allTextures[x, y];
        }
        public void setTexture(Texture2D tex)
        {
            bigTexture = tex;
        }
    }
}
